import request from '../utils/request'

class admin {
	// 登录
	login(data) {
		return request.post('/admin.php?s=Admin.Basic_User.LoginByPassword', data)
	}
	// 注册
	register(data) {
		return request.post('/admin.php?s=Admin.Basic_User.RegisterByPassword', data)
	}
	// 找回密码
	findpwd(data) {
		return request.post('/admin.php?s=Admin.Basic_User.ResetPasswordByMobile', data)
	}
	// 图形验证码
	captcha(data) {
		data.size_width = 175
		data.size_height = 70
		return request.post('/?s=App.Common_Tools.CreateCaptcha',data)
	}
	// 手机验证码
	smsCode(data) {
		return request.post('/?s=App.Common_Sms.SendSmsCaptcha', data)
	}
}

export default new admin()